namespace QMVnSoft.Invoices
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormVATViewer : FormControl
    {
        private IContainer components;
        private GBoxControl gBoxControl2;
        private object ii_InvoiceLogOrder = DBNull.Value;
        private string is_TransactionType = "";
        private LabelControl lblDien_Giai;
        private LabelControl lblDieu_Chinh;
        private LabelControl lblDieu_Chinh0;
        private LabelControl lblGhi_Chu;
        private LabelControl lblHang_NLTS;
        private LabelControl lblHoa_Don;
        private LabelControl lblLoai_VAT;
        private LabelControl lblLoai_VAT0;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_DtGTGT;
        private LabelControl lblMa_Sp;
        private LabelControl lblNgay_Ct;
        private LabelControl lblNgay_Ps;
        private LabelControl lblSo_Ct;
        private LabelControl lblSo_Seri0;
        private LabelControl lblTen_DtGTGT;
        private LabelControl lblThue_GTGT;
        private LabelControl lblThue_XNK;
        private LabelControl lblTien;
        private LabelControl lblTien3;
        private LabelControl lblTk;
        private LabelControl lblTk_Du;
        private LabelControl lblTSCD_Ck;
        private AppInvoiceLib oAppInvoiceLib;
        private DataRow oLocalMasterRow;
        public TextControl txtDien_Giai;
        private TextOption txtDieu_Chinh;
        public TextControl txtGhi_Chu;
        private TextOption txtHang_NLTS;
        private TextOption txtHoa_Don;
        private TextOption txtLoai_VAT;
        private TextControl txtLocked;
        private TextSearch txtMa_Dt;
        public TextControl txtMa_DtGTGT;
        private TextSearch txtMa_Sp;
        public TextDate txtNgay_Ct;
        public TextDate txtNgay_Ps;
        private TextOption txtNo_Co;
        public TextControl txtSo_Ct;
        public TextControl txtSo_Seri0;
        private TextControl txtTen_Dt;
        public TextControl txtTen_DtGTGT;
        private TextControl txtTen_Sp;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Tk_Du;
        private TextNumeric txtThue_GTGT;
        private TextOption txtThue_XNK;
        private TextNumeric txtTien;
        private TextNumeric txtTien3;
        private TextSearch txtTk;
        private TextSearch txtTk_Du;
        private TextOption txtTSCD_Ck;
        private TextControl txtUserName;
        private TextOption txtVAT_Ck;

        public FormVATViewer()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormVATViewer));
            this.txtNgay_Ct = new QMVnSoft.Controls.TextDate();
            this.txtNgay_Ps = new QMVnSoft.Controls.TextDate();
            this.lblSo_Ct = new QMVnSoft.Controls.LabelControl();
            this.lblNgay_Ct = new QMVnSoft.Controls.LabelControl();
            this.lblNgay_Ps = new QMVnSoft.Controls.LabelControl();
            this.txtLocked = new QMVnSoft.Controls.TextControl();
            this.txtSo_Ct = new QMVnSoft.Controls.TextControl();
            this.txtUserName = new QMVnSoft.Controls.TextControl();
            this.gBoxControl2 = new QMVnSoft.Controls.GBoxControl();
            this.txtLoai_VAT = new QMVnSoft.Controls.TextOption();
            this.lblDieu_Chinh0 = new QMVnSoft.Controls.LabelControl();
            this.lblLoai_VAT0 = new QMVnSoft.Controls.LabelControl();
            this.lblLoai_VAT = new QMVnSoft.Controls.LabelControl();
            this.txtThue_GTGT = new QMVnSoft.Controls.TextNumeric();
            this.txtTien3 = new QMVnSoft.Controls.TextNumeric();
            this.lblTien3 = new QMVnSoft.Controls.LabelControl();
            this.txtTien = new QMVnSoft.Controls.TextNumeric();
            this.lblTien = new QMVnSoft.Controls.LabelControl();
            this.txtHoa_Don = new QMVnSoft.Controls.TextOption();
            this.txtDieu_Chinh = new QMVnSoft.Controls.TextOption();
            this.txtTSCD_Ck = new QMVnSoft.Controls.TextOption();
            this.txtHang_NLTS = new QMVnSoft.Controls.TextOption();
            this.txtThue_XNK = new QMVnSoft.Controls.TextOption();
            this.txtVAT_Ck = new QMVnSoft.Controls.TextOption();
            this.txtNo_Co = new QMVnSoft.Controls.TextOption();
            this.txtTen_Sp = new QMVnSoft.Controls.TextControl();
            this.txtTen_Dt = new QMVnSoft.Controls.TextControl();
            this.txtTen_Tk_Du = new QMVnSoft.Controls.TextControl();
            this.txtTen_Tk = new QMVnSoft.Controls.TextControl();
            this.lblHoa_Don = new QMVnSoft.Controls.LabelControl();
            this.lblDieu_Chinh = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Sp = new QMVnSoft.Controls.TextSearch();
            this.txtMa_Dt = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Sp = new QMVnSoft.Controls.LabelControl();
            this.lblTSCD_Ck = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Dt = new QMVnSoft.Controls.LabelControl();
            this.lblHang_NLTS = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Du = new QMVnSoft.Controls.TextSearch();
            this.lblThue_XNK = new QMVnSoft.Controls.LabelControl();
            this.lblTk_Du = new QMVnSoft.Controls.LabelControl();
            this.lblThue_GTGT = new QMVnSoft.Controls.LabelControl();
            this.txtTk = new QMVnSoft.Controls.TextSearch();
            this.lblTk = new QMVnSoft.Controls.LabelControl();
            this.lblSo_Seri0 = new QMVnSoft.Controls.LabelControl();
            this.lblGhi_Chu = new QMVnSoft.Controls.LabelControl();
            this.lblDien_Giai = new QMVnSoft.Controls.LabelControl();
            this.lblMa_DtGTGT = new QMVnSoft.Controls.LabelControl();
            this.lblTen_DtGTGT = new QMVnSoft.Controls.LabelControl();
            this.txtSo_Seri0 = new QMVnSoft.Controls.TextControl();
            this.txtGhi_Chu = new QMVnSoft.Controls.TextControl();
            this.txtDien_Giai = new QMVnSoft.Controls.TextControl();
            this.txtMa_DtGTGT = new QMVnSoft.Controls.TextControl();
            this.txtTen_DtGTGT = new QMVnSoft.Controls.TextControl();
            this.SuspendLayout();
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct.Enabled = false;
            this.txtNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct.Location = new System.Drawing.Point(99, 28);
            this.txtNgay_Ct.Mask = "00/00/0000";
            this.txtNgay_Ct.Name = "txtNgay_Ct";
            this.txtNgay_Ct.OldValue = null;
            this.txtNgay_Ct.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ct.TabIndex = 15;
            this.txtNgay_Ct.Value = ((object)(resources.GetObject("txtNgay_Ct.Value")));
            // 
            // txtNgay_Ps
            // 
            this.txtNgay_Ps.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ps.Enabled = false;
            this.txtNgay_Ps.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ps.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ps.Location = new System.Drawing.Point(99, 3);
            this.txtNgay_Ps.Mask = "00/00/0000";
            this.txtNgay_Ps.Name = "txtNgay_Ps";
            this.txtNgay_Ps.OldValue = null;
            this.txtNgay_Ps.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ps.TabIndex = 11;
            this.txtNgay_Ps.Value = ((object)(resources.GetObject("txtNgay_Ps.Value")));
            // 
            // lblSo_Ct
            // 
            this.lblSo_Ct.AutoSize = true;
            this.lblSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Ct.Location = new System.Drawing.Point(213, 31);
            this.lblSo_Ct.Name = "lblSo_Ct";
            this.lblSo_Ct.Size = new System.Drawing.Size(20, 14);
            this.lblSo_Ct.TabIndex = 19;
            this.lblSo_Ct.Text = "Số";
            // 
            // lblNgay_Ct
            // 
            this.lblNgay_Ct.AutoSize = true;
            this.lblNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct.Location = new System.Drawing.Point(12, 31);
            this.lblNgay_Ct.Name = "lblNgay_Ct";
            this.lblNgay_Ct.Size = new System.Drawing.Size(75, 14);
            this.lblNgay_Ct.TabIndex = 18;
            this.lblNgay_Ct.Text = "Ngày hóa đơn";
            // 
            // lblNgay_Ps
            // 
            this.lblNgay_Ps.AutoSize = true;
            this.lblNgay_Ps.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ps.Location = new System.Drawing.Point(12, 6);
            this.lblNgay_Ps.Name = "lblNgay_Ps";
            this.lblNgay_Ps.Size = new System.Drawing.Size(68, 14);
            this.lblNgay_Ps.TabIndex = 20;
            this.lblNgay_Ps.Text = "Ngày kê khai";
            // 
            // txtLocked
            // 
            this.txtLocked.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtLocked.BackColor = System.Drawing.Color.Aquamarine;
            this.txtLocked.CheckTextSearched = false;
            this.txtLocked.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtLocked.Enabled = false;
            this.txtLocked.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLocked.Location = new System.Drawing.Point(669, 3);
            this.txtLocked.Name = "txtLocked";
            this.txtLocked.OldValue = null;
            this.txtLocked.Size = new System.Drawing.Size(58, 20);
            this.txtLocked.TabIndex = 13;
            this.txtLocked.Text = "Khóa";
            this.txtLocked.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtLocked.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtLocked.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLocked.Value = "Khóa";
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.CheckTextSearched = false;
            this.txtSo_Ct.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Ct.Location = new System.Drawing.Point(241, 28);
            this.txtSo_Ct.Name = "txtSo_Ct";
            this.txtSo_Ct.OldValue = null;
            this.txtSo_Ct.ReadOnly = true;
            this.txtSo_Ct.Size = new System.Drawing.Size(90, 20);
            this.txtSo_Ct.TabIndex = 16;
            this.txtSo_Ct.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtSo_Ct.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Ct.Value = ((object)(resources.GetObject("txtSo_Ct.Value")));
            // 
            // txtUserName
            // 
            this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtUserName.BackColor = System.Drawing.Color.Aquamarine;
            this.txtUserName.CheckTextSearched = false;
            this.txtUserName.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtUserName.Enabled = false;
            this.txtUserName.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtUserName.Location = new System.Drawing.Point(726, 3);
            this.txtUserName.Name = "txtUserName";
            this.txtUserName.OldValue = null;
            this.txtUserName.Size = new System.Drawing.Size(58, 20);
            this.txtUserName.TabIndex = 12;
            this.txtUserName.Text = "ADMIN";
            this.txtUserName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtUserName.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtUserName.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtUserName.Value = "ADMIN";
            // 
            // gBoxControl2
            // 
            this.gBoxControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.gBoxControl2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl2.Location = new System.Drawing.Point(-5, 20);
            this.gBoxControl2.Name = "gBoxControl2";
            this.gBoxControl2.Size = new System.Drawing.Size(806, 7);
            this.gBoxControl2.TabIndex = 23;
            this.gBoxControl2.TabStop = false;
            // 
            // txtLoai_VAT
            // 
            this.txtLoai_VAT.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtLoai_VAT.CheckTextSearched = false;
            this.txtLoai_VAT.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtLoai_VAT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLoai_VAT.InputMask = "1,2,3,4";
            this.txtLoai_VAT.Location = new System.Drawing.Point(99, 358);
            this.txtLoai_VAT.Name = "txtLoai_VAT";
            this.txtLoai_VAT.OldValue = null;
            this.txtLoai_VAT.ReadOnly = true;
            this.txtLoai_VAT.Size = new System.Drawing.Size(18, 20);
            this.txtLoai_VAT.TabIndex = 104;
            this.txtLoai_VAT.Text = "1";
            this.txtLoai_VAT.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtLoai_VAT.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLoai_VAT.Value = "1";
            // 
            // lblDieu_Chinh0
            // 
            this.lblDieu_Chinh0.AutoSize = true;
            this.lblDieu_Chinh0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDieu_Chinh0.ForeColor = System.Drawing.Color.Blue;
            this.lblDieu_Chinh0.Location = new System.Drawing.Point(126, 426);
            this.lblDieu_Chinh0.Name = "lblDieu_Chinh0";
            this.lblDieu_Chinh0.Size = new System.Drawing.Size(130, 14);
            this.lblDieu_Chinh0.TabIndex = 125;
            this.lblDieu_Chinh0.Text = "C-Điều chỉnh, K-Phát sinh";
            // 
            // lblLoai_VAT0
            // 
            this.lblLoai_VAT0.AutoSize = true;
            this.lblLoai_VAT0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_VAT0.ForeColor = System.Drawing.Color.Blue;
            this.lblLoai_VAT0.Location = new System.Drawing.Point(123, 361);
            this.lblLoai_VAT0.Name = "lblLoai_VAT0";
            this.lblLoai_VAT0.Size = new System.Drawing.Size(241, 56);
            this.lblLoai_VAT0.TabIndex = 124;
            this.lblLoai_VAT0.Text = "1-Riêng cho SXKD chịu thuế\r\n2-Riêng cho SXKD không chịu thuế\r\n3-Chung cho SXKD ch" +
                "ịu thuế và không chịu thuế\r\n4-Dùng cho hoạt động đầu tư";
            // 
            // lblLoai_VAT
            // 
            this.lblLoai_VAT.AutoSize = true;
            this.lblLoai_VAT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_VAT.Location = new System.Drawing.Point(12, 361);
            this.lblLoai_VAT.Name = "lblLoai_VAT";
            this.lblLoai_VAT.Size = new System.Drawing.Size(54, 14);
            this.lblLoai_VAT.TabIndex = 123;
            this.lblLoai_VAT.Text = "Loại  thuế";
            // 
            // txtThue_GTGT
            // 
            this.txtThue_GTGT.AllowNegative = false;
            this.txtThue_GTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtThue_GTGT.Location = new System.Drawing.Point(116, 226);
            this.txtThue_GTGT.Name = "txtThue_GTGT";
            this.txtThue_GTGT.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtThue_GTGT.OldValue = null;
            this.txtThue_GTGT.ReadOnly = true;
            this.txtThue_GTGT.Size = new System.Drawing.Size(73, 20);
            this.txtThue_GTGT.TabIndex = 93;
            this.txtThue_GTGT.Text = "0.00";
            this.txtThue_GTGT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtThue_GTGT.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.txtThue_GTGT.Value = ((object)(resources.GetObject("txtThue_GTGT.Value")));
            this.txtThue_GTGT.ZeroIsShown = true;
            // 
            // txtTien3
            // 
            this.txtTien3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTien3.Location = new System.Drawing.Point(99, 248);
            this.txtTien3.Name = "txtTien3";
            this.txtTien3.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTien3.OldValue = null;
            this.txtTien3.ReadOnly = true;
            this.txtTien3.Size = new System.Drawing.Size(90, 20);
            this.txtTien3.TabIndex = 94;
            this.txtTien3.Text = "0.00";
            this.txtTien3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTien3.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtTien3.Value = ((object)(resources.GetObject("txtTien3.Value")));
            this.txtTien3.ZeroIsShown = true;
            // 
            // lblTien3
            // 
            this.lblTien3.AutoSize = true;
            this.lblTien3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTien3.Location = new System.Drawing.Point(12, 251);
            this.lblTien3.Name = "lblTien3";
            this.lblTien3.Size = new System.Drawing.Size(51, 14);
            this.lblTien3.TabIndex = 121;
            this.lblTien3.Text = "Tiền thuế";
            // 
            // txtTien
            // 
            this.txtTien.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTien.Location = new System.Drawing.Point(99, 204);
            this.txtTien.Name = "txtTien";
            this.txtTien.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTien.OldValue = null;
            this.txtTien.ReadOnly = true;
            this.txtTien.Size = new System.Drawing.Size(90, 20);
            this.txtTien.TabIndex = 91;
            this.txtTien.Text = "0.00";
            this.txtTien.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTien.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtTien.Value = ((object)(resources.GetObject("txtTien.Value")));
            this.txtTien.ZeroIsShown = true;
            // 
            // lblTien
            // 
            this.lblTien.AutoSize = true;
            this.lblTien.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTien.Location = new System.Drawing.Point(12, 207);
            this.lblTien.Name = "lblTien";
            this.lblTien.Size = new System.Drawing.Size(54, 14);
            this.lblTien.TabIndex = 122;
            this.lblTien.Text = "Tiền hàng";
            // 
            // txtHoa_Don
            // 
            this.txtHoa_Don.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtHoa_Don.CheckTextSearched = false;
            this.txtHoa_Don.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtHoa_Don.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHoa_Don.InputMask = "C,K";
            this.txtHoa_Don.Location = new System.Drawing.Point(99, 336);
            this.txtHoa_Don.Name = "txtHoa_Don";
            this.txtHoa_Don.OldValue = null;
            this.txtHoa_Don.ReadOnly = true;
            this.txtHoa_Don.Size = new System.Drawing.Size(18, 20);
            this.txtHoa_Don.TabIndex = 103;
            this.txtHoa_Don.Text = "C";
            this.txtHoa_Don.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtHoa_Don.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtHoa_Don.Value = "C";
            // 
            // txtDieu_Chinh
            // 
            this.txtDieu_Chinh.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtDieu_Chinh.CheckTextSearched = false;
            this.txtDieu_Chinh.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDieu_Chinh.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDieu_Chinh.InputMask = "C,K";
            this.txtDieu_Chinh.Location = new System.Drawing.Point(99, 423);
            this.txtDieu_Chinh.Name = "txtDieu_Chinh";
            this.txtDieu_Chinh.OldValue = null;
            this.txtDieu_Chinh.ReadOnly = true;
            this.txtDieu_Chinh.Size = new System.Drawing.Size(18, 20);
            this.txtDieu_Chinh.TabIndex = 105;
            this.txtDieu_Chinh.Text = "C";
            this.txtDieu_Chinh.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtDieu_Chinh.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDieu_Chinh.Value = "C";
            // 
            // txtTSCD_Ck
            // 
            this.txtTSCD_Ck.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTSCD_Ck.CheckTextSearched = false;
            this.txtTSCD_Ck.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTSCD_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTSCD_Ck.InputMask = "C,K";
            this.txtTSCD_Ck.Location = new System.Drawing.Point(99, 314);
            this.txtTSCD_Ck.Name = "txtTSCD_Ck";
            this.txtTSCD_Ck.OldValue = null;
            this.txtTSCD_Ck.ReadOnly = true;
            this.txtTSCD_Ck.Size = new System.Drawing.Size(18, 20);
            this.txtTSCD_Ck.TabIndex = 102;
            this.txtTSCD_Ck.Text = "C";
            this.txtTSCD_Ck.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTSCD_Ck.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTSCD_Ck.Value = "C";
            // 
            // txtHang_NLTS
            // 
            this.txtHang_NLTS.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtHang_NLTS.CheckTextSearched = false;
            this.txtHang_NLTS.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtHang_NLTS.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHang_NLTS.InputMask = "C,K";
            this.txtHang_NLTS.Location = new System.Drawing.Point(99, 292);
            this.txtHang_NLTS.Name = "txtHang_NLTS";
            this.txtHang_NLTS.OldValue = null;
            this.txtHang_NLTS.ReadOnly = true;
            this.txtHang_NLTS.Size = new System.Drawing.Size(18, 20);
            this.txtHang_NLTS.TabIndex = 101;
            this.txtHang_NLTS.Text = "C";
            this.txtHang_NLTS.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtHang_NLTS.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtHang_NLTS.Value = "C";
            // 
            // txtThue_XNK
            // 
            this.txtThue_XNK.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtThue_XNK.CheckTextSearched = false;
            this.txtThue_XNK.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtThue_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtThue_XNK.InputMask = "C,K";
            this.txtThue_XNK.Location = new System.Drawing.Point(99, 270);
            this.txtThue_XNK.Name = "txtThue_XNK";
            this.txtThue_XNK.OldValue = null;
            this.txtThue_XNK.ReadOnly = true;
            this.txtThue_XNK.Size = new System.Drawing.Size(18, 20);
            this.txtThue_XNK.TabIndex = 95;
            this.txtThue_XNK.Text = "C";
            this.txtThue_XNK.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtThue_XNK.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtThue_XNK.Value = "C";
            // 
            // txtVAT_Ck
            // 
            this.txtVAT_Ck.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtVAT_Ck.CheckTextSearched = false;
            this.txtVAT_Ck.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtVAT_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtVAT_Ck.InputMask = "C,K";
            this.txtVAT_Ck.Location = new System.Drawing.Point(99, 226);
            this.txtVAT_Ck.Name = "txtVAT_Ck";
            this.txtVAT_Ck.OldValue = null;
            this.txtVAT_Ck.ReadOnly = true;
            this.txtVAT_Ck.Size = new System.Drawing.Size(18, 20);
            this.txtVAT_Ck.TabIndex = 92;
            this.txtVAT_Ck.Text = "C";
            this.txtVAT_Ck.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtVAT_Ck.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtVAT_Ck.Value = "C";
            // 
            // txtNo_Co
            // 
            this.txtNo_Co.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtNo_Co.CheckTextSearched = false;
            this.txtNo_Co.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtNo_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNo_Co.InputMask = "N,C";
            this.txtNo_Co.Location = new System.Drawing.Point(99, 50);
            this.txtNo_Co.Name = "txtNo_Co";
            this.txtNo_Co.OldValue = null;
            this.txtNo_Co.ReadOnly = true;
            this.txtNo_Co.Size = new System.Drawing.Size(18, 20);
            this.txtNo_Co.TabIndex = 83;
            this.txtNo_Co.Text = "N";
            this.txtNo_Co.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtNo_Co.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtNo_Co.Value = "N";
            // 
            // txtTen_Sp
            // 
            this.txtTen_Sp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Sp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Sp.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Sp.CheckTextSearched = false;
            this.txtTen_Sp.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Sp.Enabled = false;
            this.txtTen_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Sp.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Sp.Location = new System.Drawing.Point(195, 444);
            this.txtTen_Sp.Name = "txtTen_Sp";
            this.txtTen_Sp.OldValue = null;
            this.txtTen_Sp.Size = new System.Drawing.Size(589, 13);
            this.txtTen_Sp.TabIndex = 119;
            this.txtTen_Sp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Sp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Sp.Value = ((object)(resources.GetObject("txtTen_Sp.Value")));
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(195, 97);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(589, 13);
            this.txtTen_Dt.TabIndex = 118;
            this.txtTen_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = ((object)(resources.GetObject("txtTen_Dt.Value")));
            // 
            // txtTen_Tk_Du
            // 
            this.txtTen_Tk_Du.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Du.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du.CheckTextSearched = false;
            this.txtTen_Tk_Du.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du.Enabled = false;
            this.txtTen_Tk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du.Location = new System.Drawing.Point(195, 75);
            this.txtTen_Tk_Du.Name = "txtTen_Tk_Du";
            this.txtTen_Tk_Du.OldValue = null;
            this.txtTen_Tk_Du.Size = new System.Drawing.Size(589, 13);
            this.txtTen_Tk_Du.TabIndex = 117;
            this.txtTen_Tk_Du.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du.Value = ((object)(resources.GetObject("txtTen_Tk_Du.Value")));
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Enabled = false;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Location = new System.Drawing.Point(195, 53);
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(589, 13);
            this.txtTen_Tk.TabIndex = 120;
            this.txtTen_Tk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk.Value = ((object)(resources.GetObject("txtTen_Tk.Value")));
            // 
            // lblHoa_Don
            // 
            this.lblHoa_Don.AutoSize = true;
            this.lblHoa_Don.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHoa_Don.Location = new System.Drawing.Point(12, 339);
            this.lblHoa_Don.Name = "lblHoa_Don";
            this.lblHoa_Don.Size = new System.Drawing.Size(47, 14);
            this.lblHoa_Don.TabIndex = 114;
            this.lblHoa_Don.Text = "hóa đơn";
            // 
            // lblDieu_Chinh
            // 
            this.lblDieu_Chinh.AutoSize = true;
            this.lblDieu_Chinh.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDieu_Chinh.Location = new System.Drawing.Point(12, 426);
            this.lblDieu_Chinh.Name = "lblDieu_Chinh";
            this.lblDieu_Chinh.Size = new System.Drawing.Size(58, 14);
            this.lblDieu_Chinh.TabIndex = 113;
            this.lblDieu_Chinh.Text = "Điều chỉnh";
            // 
            // txtMa_Sp
            // 
            this.txtMa_Sp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Sp.CheckTextSearched = false;
            this.txtMa_Sp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Sp.EmptyIsValid = true;
            this.txtMa_Sp.FieldDisplay = "Ten_Bp";
            this.txtMa_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Sp.FoundIsValid = true;
            this.txtMa_Sp.Location = new System.Drawing.Point(99, 445);
            this.txtMa_Sp.MaxLength = 32;
            this.txtMa_Sp.Name = "txtMa_Sp";
            this.txtMa_Sp.OldValue = null;
            this.txtMa_Sp.ReadOnly = true;
            this.txtMa_Sp.Size = new System.Drawing.Size(90, 20);
            this.txtMa_Sp.TabIndex = 106;
            this.txtMa_Sp.TableName = "DMSP";
            this.txtMa_Sp.TextDisplay = this.txtTen_Sp;
            this.txtMa_Sp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Sp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Sp.Value = ((object)(resources.GetObject("txtMa_Sp.Value")));
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.FoundIsValid = true;
            this.txtMa_Dt.Location = new System.Drawing.Point(99, 94);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.ReadOnly = true;
            this.txtMa_Dt.Size = new System.Drawing.Size(90, 20);
            this.txtMa_Dt.TabIndex = 86;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = ((object)(resources.GetObject("txtMa_Dt.Value")));
            // 
            // lblMa_Sp
            // 
            this.lblMa_Sp.AutoSize = true;
            this.lblMa_Sp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Sp.Location = new System.Drawing.Point(12, 448);
            this.lblMa_Sp.Name = "lblMa_Sp";
            this.lblMa_Sp.Size = new System.Drawing.Size(36, 14);
            this.lblMa_Sp.TabIndex = 112;
            this.lblMa_Sp.Text = "Dự án";
            // 
            // lblTSCD_Ck
            // 
            this.lblTSCD_Ck.AutoSize = true;
            this.lblTSCD_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTSCD_Ck.Location = new System.Drawing.Point(12, 317);
            this.lblTSCD_Ck.Name = "lblTSCD_Ck";
            this.lblTSCD_Ck.Size = new System.Drawing.Size(80, 14);
            this.lblTSCD_Ck.TabIndex = 111;
            this.lblTSCD_Ck.Text = "Tài sản cố định";
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 97);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(70, 14);
            this.lblMa_Dt.TabIndex = 116;
            this.lblMa_Dt.Text = "Mã đối tượng";
            // 
            // lblHang_NLTS
            // 
            this.lblHang_NLTS.AutoSize = true;
            this.lblHang_NLTS.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHang_NLTS.Location = new System.Drawing.Point(12, 295);
            this.lblHang_NLTS.Name = "lblHang_NLTS";
            this.lblHang_NLTS.Size = new System.Drawing.Size(79, 14);
            this.lblHang_NLTS.TabIndex = 115;
            this.lblHang_NLTS.Text = "hàng nông sản";
            // 
            // txtTk_Du
            // 
            this.txtTk_Du.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du.CheckTextSearched = false;
            this.txtTk_Du.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du.FieldDisplay = "Ten_Tk";
            this.txtTk_Du.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du.FoundIsValid = true;
            this.txtTk_Du.Location = new System.Drawing.Point(99, 72);
            this.txtTk_Du.MaxLength = 32;
            this.txtTk_Du.Name = "txtTk_Du";
            this.txtTk_Du.OldValue = null;
            this.txtTk_Du.ReadOnly = true;
            this.txtTk_Du.Size = new System.Drawing.Size(90, 20);
            this.txtTk_Du.TabIndex = 85;
            this.txtTk_Du.TableName = "DMTK";
            this.txtTk_Du.TextDisplay = this.txtTen_Tk_Du;
            this.txtTk_Du.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du.Value = ((object)(resources.GetObject("txtTk_Du.Value")));
            // 
            // lblThue_XNK
            // 
            this.lblThue_XNK.AutoSize = true;
            this.lblThue_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblThue_XNK.Location = new System.Drawing.Point(12, 273);
            this.lblThue_XNK.Name = "lblThue_XNK";
            this.lblThue_XNK.Size = new System.Drawing.Size(55, 14);
            this.lblThue_XNK.TabIndex = 108;
            this.lblThue_XNK.Text = "hàng XNK";
            // 
            // lblTk_Du
            // 
            this.lblTk_Du.AutoSize = true;
            this.lblTk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du.Location = new System.Drawing.Point(12, 75);
            this.lblTk_Du.Name = "lblTk_Du";
            this.lblTk_Du.Size = new System.Drawing.Size(83, 14);
            this.lblTk_Du.TabIndex = 107;
            this.lblTk_Du.Text = "T.khoản đối ứng";
            // 
            // lblThue_GTGT
            // 
            this.lblThue_GTGT.AutoSize = true;
            this.lblThue_GTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblThue_GTGT.Location = new System.Drawing.Point(12, 229);
            this.lblThue_GTGT.Name = "lblThue_GTGT";
            this.lblThue_GTGT.Size = new System.Drawing.Size(55, 14);
            this.lblThue_GTGT.TabIndex = 110;
            this.lblThue_GTGT.Text = "Thuế suất";
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.FieldDisplay = "Ten_Tk";
            this.txtTk.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.FoundIsValid = true;
            this.txtTk.Location = new System.Drawing.Point(116, 50);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.ReadOnly = true;
            this.txtTk.Size = new System.Drawing.Size(73, 20);
            this.txtTk.TabIndex = 84;
            this.txtTk.TableName = "DMTK";
            this.txtTk.TextDisplay = this.txtTen_Tk;
            this.txtTk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk.Value = ((object)(resources.GetObject("txtTk.Value")));
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(12, 53);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 109;
            this.lblTk.Text = "Tài khoản";
            // 
            // lblSo_Seri0
            // 
            this.lblSo_Seri0.AutoSize = true;
            this.lblSo_Seri0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Seri0.Location = new System.Drawing.Point(359, 31);
            this.lblSo_Seri0.Name = "lblSo_Seri0";
            this.lblSo_Seri0.Size = new System.Drawing.Size(43, 14);
            this.lblSo_Seri0.TabIndex = 100;
            this.lblSo_Seri0.Text = "Ký hiệu";
            // 
            // lblGhi_Chu
            // 
            this.lblGhi_Chu.AutoSize = true;
            this.lblGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGhi_Chu.Location = new System.Drawing.Point(12, 185);
            this.lblGhi_Chu.Name = "lblGhi_Chu";
            this.lblGhi_Chu.Size = new System.Drawing.Size(44, 14);
            this.lblGhi_Chu.TabIndex = 96;
            this.lblGhi_Chu.Text = "Ghi chú";
            // 
            // lblDien_Giai
            // 
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDien_Giai.Location = new System.Drawing.Point(12, 163);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new System.Drawing.Size(51, 14);
            this.lblDien_Giai.TabIndex = 97;
            this.lblDien_Giai.Text = "Mặt hàng";
            // 
            // lblMa_DtGTGT
            // 
            this.lblMa_DtGTGT.AutoSize = true;
            this.lblMa_DtGTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_DtGTGT.Location = new System.Drawing.Point(12, 141);
            this.lblMa_DtGTGT.Name = "lblMa_DtGTGT";
            this.lblMa_DtGTGT.Size = new System.Drawing.Size(60, 14);
            this.lblMa_DtGTGT.TabIndex = 98;
            this.lblMa_DtGTGT.Text = "Mã số thuế";
            // 
            // lblTen_DtGTGT
            // 
            this.lblTen_DtGTGT.AutoSize = true;
            this.lblTen_DtGTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_DtGTGT.Location = new System.Drawing.Point(12, 119);
            this.lblTen_DtGTGT.Name = "lblTen_DtGTGT";
            this.lblTen_DtGTGT.Size = new System.Drawing.Size(74, 14);
            this.lblTen_DtGTGT.TabIndex = 99;
            this.lblTen_DtGTGT.Text = "Tên đối tượng";
            // 
            // txtSo_Seri0
            // 
            this.txtSo_Seri0.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtSo_Seri0.CheckTextSearched = false;
            this.txtSo_Seri0.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Seri0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Seri0.Location = new System.Drawing.Point(408, 28);
            this.txtSo_Seri0.MaxLength = 20;
            this.txtSo_Seri0.Name = "txtSo_Seri0";
            this.txtSo_Seri0.OldValue = null;
            this.txtSo_Seri0.ReadOnly = true;
            this.txtSo_Seri0.Size = new System.Drawing.Size(90, 20);
            this.txtSo_Seri0.TabIndex = 82;
            this.txtSo_Seri0.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceNumber;
            this.txtSo_Seri0.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Seri0.Value = ((object)(resources.GetObject("txtSo_Seri0.Value")));
            // 
            // txtGhi_Chu
            // 
            this.txtGhi_Chu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtGhi_Chu.CheckTextSearched = false;
            this.txtGhi_Chu.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGhi_Chu.Location = new System.Drawing.Point(99, 182);
            this.txtGhi_Chu.MaxLength = 254;
            this.txtGhi_Chu.Name = "txtGhi_Chu";
            this.txtGhi_Chu.OldValue = null;
            this.txtGhi_Chu.ReadOnly = true;
            this.txtGhi_Chu.Size = new System.Drawing.Size(685, 20);
            this.txtGhi_Chu.TabIndex = 90;
            this.txtGhi_Chu.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtGhi_Chu.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtGhi_Chu.Value = ((object)(resources.GetObject("txtGhi_Chu.Value")));
            // 
            // txtDien_Giai
            // 
            this.txtDien_Giai.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDien_Giai.Location = new System.Drawing.Point(99, 160);
            this.txtDien_Giai.MaxLength = 254;
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.ReadOnly = true;
            this.txtDien_Giai.Size = new System.Drawing.Size(685, 20);
            this.txtDien_Giai.TabIndex = 89;
            this.txtDien_Giai.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDien_Giai.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDien_Giai.Value = ((object)(resources.GetObject("txtDien_Giai.Value")));
            // 
            // txtMa_DtGTGT
            // 
            this.txtMa_DtGTGT.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMa_DtGTGT.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_DtGTGT.CheckTextSearched = false;
            this.txtMa_DtGTGT.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_DtGTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_DtGTGT.Location = new System.Drawing.Point(99, 138);
            this.txtMa_DtGTGT.MaxLength = 20;
            this.txtMa_DtGTGT.Name = "txtMa_DtGTGT";
            this.txtMa_DtGTGT.OldValue = null;
            this.txtMa_DtGTGT.ReadOnly = true;
            this.txtMa_DtGTGT.Size = new System.Drawing.Size(685, 20);
            this.txtMa_DtGTGT.TabIndex = 88;
            this.txtMa_DtGTGT.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceNumber;
            this.txtMa_DtGTGT.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtMa_DtGTGT.Value = ((object)(resources.GetObject("txtMa_DtGTGT.Value")));
            // 
            // txtTen_DtGTGT
            // 
            this.txtTen_DtGTGT.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_DtGTGT.CheckTextSearched = false;
            this.txtTen_DtGTGT.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_DtGTGT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_DtGTGT.Location = new System.Drawing.Point(99, 116);
            this.txtTen_DtGTGT.MaxLength = 128;
            this.txtTen_DtGTGT.Name = "txtTen_DtGTGT";
            this.txtTen_DtGTGT.OldValue = null;
            this.txtTen_DtGTGT.ReadOnly = true;
            this.txtTen_DtGTGT.Size = new System.Drawing.Size(685, 20);
            this.txtTen_DtGTGT.TabIndex = 87;
            this.txtTen_DtGTGT.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_DtGTGT.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_DtGTGT.Value = ((object)(resources.GetObject("txtTen_DtGTGT.Value")));
            // 
            // FormVATViewer
            // 
            this.ClientSize = new System.Drawing.Size(796, 534);
            this.Controls.Add(this.txtLoai_VAT);
            this.Controls.Add(this.lblDieu_Chinh0);
            this.Controls.Add(this.lblLoai_VAT0);
            this.Controls.Add(this.lblLoai_VAT);
            this.Controls.Add(this.txtThue_GTGT);
            this.Controls.Add(this.txtTien3);
            this.Controls.Add(this.lblTien3);
            this.Controls.Add(this.txtTien);
            this.Controls.Add(this.lblTien);
            this.Controls.Add(this.txtHoa_Don);
            this.Controls.Add(this.txtDieu_Chinh);
            this.Controls.Add(this.txtTSCD_Ck);
            this.Controls.Add(this.txtHang_NLTS);
            this.Controls.Add(this.txtThue_XNK);
            this.Controls.Add(this.txtVAT_Ck);
            this.Controls.Add(this.txtNo_Co);
            this.Controls.Add(this.txtTen_Sp);
            this.Controls.Add(this.txtTen_Dt);
            this.Controls.Add(this.txtTen_Tk_Du);
            this.Controls.Add(this.txtTen_Tk);
            this.Controls.Add(this.lblHoa_Don);
            this.Controls.Add(this.lblDieu_Chinh);
            this.Controls.Add(this.txtMa_Sp);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblMa_Sp);
            this.Controls.Add(this.lblTSCD_Ck);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.lblHang_NLTS);
            this.Controls.Add(this.txtTk_Du);
            this.Controls.Add(this.lblThue_XNK);
            this.Controls.Add(this.lblTk_Du);
            this.Controls.Add(this.lblThue_GTGT);
            this.Controls.Add(this.txtTk);
            this.Controls.Add(this.lblTk);
            this.Controls.Add(this.lblSo_Seri0);
            this.Controls.Add(this.lblGhi_Chu);
            this.Controls.Add(this.lblDien_Giai);
            this.Controls.Add(this.lblMa_DtGTGT);
            this.Controls.Add(this.lblTen_DtGTGT);
            this.Controls.Add(this.txtSo_Seri0);
            this.Controls.Add(this.txtGhi_Chu);
            this.Controls.Add(this.txtDien_Giai);
            this.Controls.Add(this.txtMa_DtGTGT);
            this.Controls.Add(this.txtTen_DtGTGT);
            this.Controls.Add(this.txtNgay_Ct);
            this.Controls.Add(this.txtNgay_Ps);
            this.Controls.Add(this.lblSo_Ct);
            this.Controls.Add(this.lblNgay_Ct);
            this.Controls.Add(this.lblNgay_Ps);
            this.Controls.Add(this.txtLocked);
            this.Controls.Add(this.txtSo_Ct);
            this.Controls.Add(this.txtUserName);
            this.Controls.Add(this.gBoxControl2);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(802, 566);
            this.Name = "FormVATViewer";
            this.Text = "Hóa đơn";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        internal virtual void OnShow()
        {
            this.LocalMasterRow = this.AppInvoiceParameters.AppInvoiceMethod.GetMasterHistoryDataRow(this.TransactionType, this.InvoiceLogOrder);
            this.txtNgay_Ps.Value = this.LocalMasterRow["Ngay_Ct"];
            this.txtNgay_Ct.Value = this.LocalMasterRow["Ngay_Ct0"];
            this.txtSo_Ct.Value = this.LocalMasterRow["So_Ct0"];
            this.txtSo_Seri0.Value = this.LocalMasterRow["So_Seri0"];
            this.txtNo_Co.Value = this.LocalMasterRow["No_Co"];
            this.txtTk.Value = this.LocalMasterRow["Tk"];
            this.txtTen_Tk.Value = this.LocalMasterRow["Ten_Tk"];
            this.txtTk_Du.Value = this.LocalMasterRow["Tk_Du"];
            this.txtTen_Tk_Du.Value = this.LocalMasterRow["Ten_Tk_Du"];
            this.txtMa_Dt.Value = this.LocalMasterRow["Ma_Dt"];
            this.txtTen_Dt.Value = this.LocalMasterRow["Ten_Dt"];
            this.txtTen_DtGTGT.Value = this.LocalMasterRow["Ten_DtGTGT"];
            this.txtMa_DtGTGT.Value = this.LocalMasterRow["Ma_DtGTGT"];
            this.txtDien_Giai.Value = this.LocalMasterRow["Dien_Giai"];
            this.txtGhi_Chu.Value = this.LocalMasterRow["Ghi_Chu"];
            this.txtTien.Value = this.LocalMasterRow["Tien"];
            this.txtVAT_Ck.Value = this.LocalMasterRow["VAT_Ck"];
            this.txtThue_GTGT.Value = this.LocalMasterRow["Thue_GTGT"];
            this.txtTien3.Value = this.LocalMasterRow["Tien3"];
            this.txtThue_XNK.Value = this.LocalMasterRow["Thue_XNK"];
            this.txtHang_NLTS.Value = this.LocalMasterRow["Hang_NLTS"];
            this.txtTSCD_Ck.Value = this.LocalMasterRow["TSCD_Ck"];
            this.txtHoa_Don.Value = this.LocalMasterRow["Hoa_Don"];
            this.txtLoai_VAT.Value = this.LocalMasterRow["Loai_VAT"];
            this.txtDieu_Chinh.Value = this.LocalMasterRow["Dieu_Chinh"];
            this.txtMa_Sp.Value = this.LocalMasterRow["Ma_Sp"];
            this.txtTen_Sp.Value = this.LocalMasterRow["Ten_Sp"];
            this.SetPostedText();
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.Escape)
            {
                base.Close();
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

        private void SetPostedText()
        {
            if (this.LocalMasterRow.Table.Columns.Contains("Locked"))
            {
                this.txtLocked.Value = ((bool) this.LocalMasterRow["Locked"]) ? "Khóa" : "Mở";
            }
            this.txtUserName.Value = this.LocalMasterRow["UserName"];
        }

        [Browsable(false), DefaultValue((string) null), Category("History viewer properties"), Description("The parameters that declare by system, user, invoice code.")]
        public AppInvoiceLib AppInvoiceParameters
        {
            get
            {
                if (this.oAppInvoiceLib == null)
                {
                    this.AppInvoiceParameters = new AppInvoiceLib();
                }
                return this.oAppInvoiceLib;
            }
            set
            {
                this.oAppInvoiceLib = value;
            }
        }

        [DefaultValue((string) null), Browsable(false), Description("The history invoice order."), Category("History viewer properties")]
        public object InvoiceLogOrder
        {
            get
            {
                return this.ii_InvoiceLogOrder;
            }
            set
            {
                this.ii_InvoiceLogOrder = value;
            }
        }

        [DefaultValue((string) null), Browsable(false), Category("History viewer properties"), Description("The master row.")]
        public DataRow LocalMasterRow
        {
            get
            {
                return this.oLocalMasterRow;
            }
            set
            {
                this.oLocalMasterRow = value;
            }
        }

        [Description("The transaction type."), DefaultValue((string) null), Browsable(false), Category("History viewer properties")]
        public string TransactionType
        {
            get
            {
                if (string.IsNullOrEmpty(this.is_TransactionType))
                {
                    return this.AppInvoiceParameters.TransactionType;
                }
                return this.is_TransactionType;
            }
            set
            {
                if (this.is_TransactionType != value)
                {
                    this.is_TransactionType = value;
                }
            }
        }
    }
}

